package com.ruoyi.wms.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料信息管理对象 wms_material_info
 * 
 * @author 杨懿
 * @date 2023-11-27
 */
public class WmsMaterialInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门id */
    private Long id;

    /** 物料类别id */
    private Long deptId;
    private Long deptRoleId;
    /** 物料编号 */
    @Excel(name = "物料编号")
    private String code;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String name;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String model;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    @Excel(name = "单价")
    private BigDecimal price;

    /** 库存总数 */
    @Excel(name = "库存总数")
    private BigDecimal total;
    @Excel(name = "总价")
    private BigDecimal totalPrice;
    /** 状态（0正常 1停用） */
    private String status;


    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private WmsMaterialCategory wmsMaterialCategory;

    /** 父菜单名称 */
    private String parentName;

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public WmsMaterialCategory getWmsMaterialCategory() {
        return wmsMaterialCategory;
    }

    public Long getDeptRoleId() {
        return deptRoleId;
    }

    public void setDeptRoleId(Long deptRoleId) {
        this.deptRoleId = deptRoleId;
    }

    public void setWmsMaterialCategory(WmsMaterialCategory wmsMaterialCategory) {
        this.wmsMaterialCategory = wmsMaterialCategory;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setTotal(BigDecimal total) 
    {
        this.total = total;
    }

    public BigDecimal getTotal() 
    {
        return total;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("code", getCode())
                .append("name", getName())
                .append("model", getModel())
                .append("type", getType())
                .append("unit", getUnit())
                .append("total", getTotal())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
